import request from '@/utils/request'
import { technicalApiUrl } from '../config'

/*
  技术服务支持
*/

/**
 * 分页查询
 * @param data
 */
 export function getSupportList(data){
    return request({
      url: `${technicalApiUrl}/technical-support/dataList`,
      method: 'post',
      data
    })
  } 


  /**
 * 新增编辑
 * @param data
 */
 export function addSupport(data){
    return request({
      url: `${technicalApiUrl}/technical-support`,
      method: 'post',
      data
    })
  } 

  /**
 * 查看详情
 * @param data
 */
  export function getSupportDetail(data){
    return request({
      url: `${technicalApiUrl}/technical-support/getDetail?id=${data.id}`,
      method: 'get',
    })
  } 

  /**
 * 删除
 * @param {Object} data
 */
export function delSupport(data) {
    return request({
        url: `${technicalApiUrl}/technical-support/del?id=${data.id}`,
        method: 'get',
    })
}

  /**
 *  获取技术服务需求下拉
 * @param data
 */
   export function technicalPullInfo(){
    return request({
      url: `${technicalApiUrl}/technical-support/pullInfo`,
      method: 'get',
    })
  } 
